$(function(){
	let tc_token = getCookie('tc_token')
	if(tc_token){
		$('#siteNav').addClass('headNavhide')
		$('#siteNav1').addClass('headNavshow')
		getUserInfo()
	}
	window.payType = IsPC() ? 1 : 2
})
 function IsPC() {
    let userAgentInfo = navigator.userAgent;
    let Agents = [
      'Android',
      'iPhone',
      'SymbianOS',
      'Windows Phone',
      'iPad',
      'iPod'
    ];
    let flagPc = true;
    for (let i = 0; i < Agents.length; i++) {
      if (userAgentInfo.indexOf(Agents[i]) > 0) {
        flagPc = false;
        break;
      }
    }
    return flagPc;
}